Skip to content

Conversation

arief-hidayat
Copy link

Issue #, if available:
encounter S3 issue when deploying from ap-southeast-3 (other than us-east-1), such as CORS.

Description of changes:
follow recommendation from https://aws.amazon.com/blogs/media/deep-dive-into-cors-configs-on-aws-s3-how-to/

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@charles-marion
Copy link
Collaborator

charles-marion commented Nov 12, 2024

Hi @arief-hidayat ,

Thank you for the update! (and sorry for the late follow up)
Can you clarify what is the issue in other regions (or error you got)?

The use of s3v4 was already set for all pre-signed URLs (which is when CORS would matter). (And the SDK automatically sets the current region)

That being said I don't see a downside of this change since v4 is the current version

@arief-hidayat
Copy link
Author

If I remember correctly, there is CORS issue because of the behaviour mentioned in the blog (about redirect URL). So, I followed the blog recommendation and it worked (at least tested on ap-southeast-3 case).

I haven't tried removing s3v4, perhaps it will still work without it. But without setting region, it failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants